/**
 * ____________________ *
 *  ____ ____ ____ _  _ *
 *  |___ [__] |--< |\/| *
 * ____________________ *
 *
 * THE CORM PROJECT
 *
 * This file may only be used in accordance with the
 * terms of the Academic Free License ("AFL") v. 3.0,
 * as published by the Open Software Initiative.  A
 * copy of this license is provided in this source
 * release, and may be viewed online at:
 *
 * (http://www.opensource.org/licenses/afl-3.0.php)
 */
package org.eremite.corm.order;

import org.eremite.corm.Archetype;
import org.jscience.physics.amount.Amount;

import javax.measure.quantity.Quantity;

/**
 * The TaxOnLine archetype represents either an
 * arbitrary Amount or a rate of tax on an OrderLine.
 */
public class TaxOnLine<Q extends Quantity> extends Archetype {
    private Amount<Q> taxAmount;
    private double taxRate;
    private String taxType;
    private String comment;

    public double getTaxRate() {
        return taxRate;
    }

    public void setTaxRate(double taxRate) {
        this.taxRate = taxRate;
    }

    public String getTaxType() {
        return taxType;
    }

    public void setTaxType(String taxType) {
        this.taxType = taxType;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Amount<Q> getTaxAmount() {
        return taxAmount;
    }

    public void setTaxAmount(Amount<Q> taxAmount) {
        this.taxAmount = taxAmount;
    }
}